-- GENERATED SPELL FOR [Sentinel Amarassan] --


function spell0_5916(pUnit, Event) --@Cat Form,Self--
pUnit:FullCastSpellOnTarget(5759,pUnit)
pUnit:RegisterEvent('Sorts_5916', 0, 1)
end

function spell1_5916(pUnit, Event) --@Tiger\'s Fury,Self--
pUnit:FullCastSpellOnTarget(5217,pUnit)
pUnit:RegisterEvent('Sorts_5916', 6000, 1)
end

function spell2_5916(pUnit, Event) --@Wrath,n/a--
pUnit:FullCastSpellOnTarget(9739,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_5916', 2000, 1)
end

function Sorts_5916(pUnit, Event)
local choix_sorts_5916 = math.random(0, 2)
if choix_sorts_5916 == 0 then
pUnit:RegisterEvent('spell0_5916', 1, 1)
end
if choix_sorts_5916 == 1 then
pUnit:RegisterEvent('spell1_5916', 1, 1)
end
if choix_sorts_5916 == 2 then
pUnit:RegisterEvent('spell2_5916', 1, 1)
end
end

function mob5916_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_5916', math.random(1500, 3000), 1)
end

function mob5916_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob5916_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob5916_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(5916, 1, 'mob5916_Action')
RegisterUnitEvent(5916, 2, 'mob5916_Leave')
RegisterUnitEvent(5916, 3, 'mob5916_Kill')
RegisterUnitEvent(5916, 4, 'mob5916_Die')
